/*
 * Amazon Ads API - Sponsored Products
 * Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=ENTITY3CWETCZD9HEG2#GWGFKPEWVWG2CLUJ). For onboarding information, see the [account setup](setting-up/account-setup) topic.<br/><br/> 
 *
 * The version of the OpenAPI document: 2.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * ProductAdExServingStatusDetails
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-04-12T19:05:39.971406+08:00[Asia/Shanghai]")
public class ProductAdExServingStatusDetails {
  public static final String SERIALIZED_NAME_NAME = "name";
  @SerializedName(SERIALIZED_NAME_NAME)
  private String name;

  public static final String SERIALIZED_NAME_SEVERITY = "severity";
  @SerializedName(SERIALIZED_NAME_SEVERITY)
  private String severity;

  public static final String SERIALIZED_NAME_MESSAGE = "message";
  @SerializedName(SERIALIZED_NAME_MESSAGE)
  private String message;

  public static final String SERIALIZED_NAME_HELP_URL = "helpUrl";
  @SerializedName(SERIALIZED_NAME_HELP_URL)
  private String helpUrl;


  public ProductAdExServingStatusDetails name(String name) {
    
    this.name = name;
    return this;
  }

   /**
   * The status identifier.
   * @return name
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The status identifier.")

  public String getName() {
    return name;
  }


  public void setName(String name) {
    this.name = name;
  }


  public ProductAdExServingStatusDetails severity(String severity) {
    
    this.severity = severity;
    return this;
  }

   /**
   * An enumerated advertising eligibility severity status. If set to &#x60;INELIGIBLE&#x60;, the product cannot be included in an advertisement. If set to &#x60;ELIGIBLE_WITH_WARNING&#x60;, the product may not receive impressions when included in an advertisement.
   * @return severity
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "An enumerated advertising eligibility severity status. If set to `INELIGIBLE`, the product cannot be included in an advertisement. If set to `ELIGIBLE_WITH_WARNING`, the product may not receive impressions when included in an advertisement.")

  public String getSeverity() {
    return severity;
  }


  public void setSeverity(String severity) {
    this.severity = severity;
  }


  public ProductAdExServingStatusDetails message(String message) {
    
    this.message = message;
    return this;
  }

   /**
   * A human-readable description of the status identifier specified in the &#x60;name&#x60; field.
   * @return message
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A human-readable description of the status identifier specified in the `name` field.")

  public String getMessage() {
    return message;
  }


  public void setMessage(String message) {
    this.message = message;
  }


  public ProductAdExServingStatusDetails helpUrl(String helpUrl) {
    
    this.helpUrl = helpUrl;
    return this;
  }

   /**
   * A URL with additional information about the status identifier. May not be present for all status identifiers.
   * @return helpUrl
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "A URL with additional information about the status identifier. May not be present for all status identifiers.")

  public String getHelpUrl() {
    return helpUrl;
  }


  public void setHelpUrl(String helpUrl) {
    this.helpUrl = helpUrl;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProductAdExServingStatusDetails productAdExServingStatusDetails = (ProductAdExServingStatusDetails) o;
    return Objects.equals(this.name, productAdExServingStatusDetails.name) &&
        Objects.equals(this.severity, productAdExServingStatusDetails.severity) &&
        Objects.equals(this.message, productAdExServingStatusDetails.message) &&
        Objects.equals(this.helpUrl, productAdExServingStatusDetails.helpUrl);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, severity, message, helpUrl);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProductAdExServingStatusDetails {\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    severity: ").append(toIndentedString(severity)).append("\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    helpUrl: ").append(toIndentedString(helpUrl)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}

